home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Click 5
/
Click 5.iso
/
data
/
game5.dat
/
scripts
/
frame_4
/
PlaceObject2_110_1372
/
CLIPACTIONRECORD onClipEvent(mouseDown).as
< prev
Wrap
Text File
|
2002-11-22
|
3KB
|
92 lines
onClipEvent(mouseDown){
if(name1 eq "0")
{
name1 = _parent.GetClickedNumber();
eval("_parent." + name1).gotoAndStop(2);
}
else
{
name2 = _parent.GetClickedNumber();
if(name1 ne name2)
{
if(eval("_parent." + name1 + ".fishka")._currentframe == eval("_parent." + name2 + ".fishka")._currentframe)
{
setProperty("_parent." + name1, _visible, false);
setProperty("_parent." + name2, _visible, false);
eval("_parent." + name1).FishkiAviable = false;
eval("_parent." + name2).FishkiAviable = false;
_parent.GetNewOpinion164(Number(name1.substr(1,1)),Number(name1.substr(2,1)),Number(name1.substr(3,1)));
_parent.GetNewOpinion164(Number(name2.substr(1,1)),Number(name2.substr(2,1)),Number(name2.substr(3,1)));
if(_parent.SowFree)
{
_parent.ShowFreeFunc();
}
var points = Math.floor((600000 - (getTimer() - _parent.tiki.TimeSt)) / 6000);
if(points < 0)
{
points = 0;
}
points += 20;
set("../:score",eval("../:score") + points);
if(eval("../:sounds"))
{
_parent.DisSound.gotoAndPlay(2);
}
_parent.laststep[0] = name1;
_parent.laststep[1] = name2;
_parent.laststep[2] = points;
if(_parent.BackBut._currentframe == 1)
{
_parent.BackBut.gotoAndStop(2);
}
steps++;
if(steps == 82)
{
_parent.gotoAndPlay("win");
}
else
{
play();
}
name1 = "0";
}
else if(eval("_parent." + name2).FishkiAviable && eval("_parent." + name2).FishkiFree)
{
if(_parent.SowFree)
{
eval("_parent." + name1).gotoAndStop(3);
}
else
{
eval("_parent." + name1).gotoAndStop(1);
}
eval("_parent." + name2).gotoAndStop(2);
name1 = name2;
name2 = "0";
}
else
{
name2 = "0";
}
}
else
{
if(_parent.SowFree)
{
eval("_parent." + name1).gotoAndStop(3);
}
else
{
eval("_parent." + name1).gotoAndStop(1);
}
name1 = "0";
}
name2 = "0";
}
if(steps >= eval("../:level") * 10 and eval("../:level") != 8)
{
set("../:PStartTime",getTimer());
_parent.gotoAndStop("conplay");
}
}